package com.oceansoft.core.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.oceansoft.core.common.util.Pagination;
import com.oceansoft.core.dao.IPersonMgrDao;
import com.oceansoft.core.domain.SysUser;
import com.oceansoft.core.service.IPersonService;

@Service
public  class PersonServiceImp implements IPersonService{

	@Resource
	private IPersonMgrDao personMgrDao;
	
	@Override
	public Pagination<SysUser> findByPage(int pageIndex, SysUser sysUser) {	
		return personMgrDao.findByPage(pageIndex, sysUser);
	}

	@Override
	public SysUser findByDbId(long dbid) {	
		System.out.println("findById");
		return personMgrDao.findByDbId(dbid);
	}



	@Override
	public int deleteUserByDbID(long dbId) {
		int result = personMgrDao.deleteUserByDbId(dbId);
		return result;
	}


}
